package com.liuweidihuangwan.jingdong.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName order
 */
@TableName(value ="ordered")
@Data
public class Order implements Serializable {
    /**
     * 订单ID
     */
    @TableId(type = IdType.AUTO)
    private Integer orderID;

    /**
     * 用户ID
     */
    private Integer userID;

    /**
     * 商品ID
     */
    private Integer spID;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 是否支付
     */
    private Integer isPay;

    /**
     * 创建时间
     */
    private Date time;

    /**
     * 价格
     */
    private BigDecimal price;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}